package com.sz.youban.dt.service.terminal.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sz.youban.dt.entity.terminal.DtCallRecords;

/**
 * <p>
  * 通话记录信息 Mapper 接口
 * </p>
 *
 * @author ruichar
 * @since 2017-06-05
 */
public interface DtCallRecordsMapper extends BaseMapper<DtCallRecords> {

    /**
     * 查询判断是否已经存储过该用户的通话记录
     * @param appPhone
     * @return
     */
//    @Select("select * from  dt_call_records where app_phone = #{appPhone} ORDER by start_time DESC limit 1")
//    @Results({
//            @Result(id=true, column="stud_id", property="studId"),
//            @Result(column="start_time", property="startTime"),
//    })
    DtCallRecords selectByAppPhone(String appPhone);
}